package com.fm.openinstall.e;

import android.app.*;
import android.os.*;

class c implements Application.ActivityLifecycleCallbacks
{
    long a;
    final /* synthetic */ b b;

    c(final b b) {
        this.b = b;
        this.a = 0L;
    }

    public void onActivityCreated(final Activity activity, final Bundle bundle) {
    }

    public void onActivityDestroyed(final Activity activity) {
    }

    public void onActivityPaused(final Activity activity) {
    }

    public void onActivityResumed(final Activity activity) {
    }

    public void onActivitySaveInstanceState(final Activity activity, final Bundle bundle) {
    }

    public void onActivityStarted(final Activity activity) {
        if (this.b.e == 0) {
            this.a = SystemClock.elapsedRealtime();
        }
        this.b.e++;
    }

    public void onActivityStopped(final Activity activity) {
        this.b.e--;
        if (this.b.e == 0) {
            this.b.b.b((SystemClock.elapsedRealtime() - this.a) / 1000L);
        }
    }
}
